"""learning_log URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),            # 这个就是我们管理员界面的网址，意思是localhost:8000/admin。admin.site.urls，该模块定义了可在管理网站中请求所有的URL
    path("", include('learning_logs.urls')),    # 函数include允许引用其他URLconfs，Django遇到include的时候，会截断与此项匹配的URL部分，并将剩余字符串发送到URLconfs
    path("users/", include("users.urls")),
]
